<?php
/**
 * Created by PhpStorm.
 * User: s79s
 * Date: 2018/10/25
 * Time: 16:55
 */

namespace app\rest\model;

use think\Model;

class User extends Model
{
    // 设置完整表名
    protected $table = 'hc_user';
    // 设置表的主键
    protected $pk = 'id';

    public function checkpass($pass)
    {
        return md5($pass);
    }
}